/*
 * @Description: 
 * @Author: charles
 * @Date: 2021-05-05 16:39:48
 * @LastEditors: 杨雨翰
 * @LastEditTime: 2022-01-06 19:19:39
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './style/layout.scss'
import { createStore } from 'vuex'

const store = createStore({
  state () {
    return {
      ed: {
        engineer_id: 0,
        device_id: 0
      },
      info: {
        province: "广西",
        city: "柳州市",
        adcode: "450200",
        weather: "阴",
        temperature: 13,
        windDirection: "北",
        windPower: "≤3",
        humidity: "73",
        reportTime: "2022-01-06 14:36:18",
        info: "OK"
      }

    }
  },
  mutations: {
    SET_ED (state, ed) {
      state.ed = ed;
    },
    SET_INFO (state, info) {
      state.info = info
    }
  }
})

createApp(App).use(router).use(store).mount('#app')
